#ifndef EMPLOYEEHPP
#define EMPLOYEEHPP

#include <string>
#include <sstream>

class Employee
{
private:
    std::string surname;
    std::string lastname;
    float revenue = 0;
public:
    void add_revenue(float revenue);
    float get_revenue();
    std::string get_name();
 
    Employee(std::string surname, std::string lastname);
};

Employee::Employee(std::string surname, std::string lastname)
    : surname(surname), lastname(lastname) {}

void Employee::add_revenue(float revenue)
{
    this->revenue += revenue;
}

float Employee::get_revenue()
{
    return this->revenue;
}

std::string Employee::get_name()
{
    std::stringstream ss;
    ss << surname << " " << lastname;
    return ss.str();
}

#endif